//加载editormd
var testEditor;

$(function() {

    // You can custom @link  base url.
    editormd.urls.atLinkBase = "https://github.com/";

    testEditor = editormd("bjy-content", {
        width     : "100%",
        height    : 720,
        toc       : true,
        //atLink    : false,    // disable @link
        //emailLink : false,    // disable email address auto link
        todoList  : true,
        placeholder: '输入文章内容',
        toolbarAutoFixed: false,
        path      : '/admin/lib/editormd/lib/',
        emoji: true,
        toolbarIcons : ['undo', 'redo', 'bold', 'del', 'italic', 'quote', 'uppercase', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'list-ul', 'list-ol', 'hr', 'link', 'reference-link', 'image', 'code', 'code-block', 'table', 'emoji', 'html-entities', 'watch', 'preview', 'search', 'fullscreen'],
        imageUpload: true,
        imageUploadURL : '/agoni/upload',
    });
});